<%--
  Created by IntelliJ IDEA.
  User: limin
  Date: 2021/8/9
  Time: 19:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">

    <title></title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">

    <link rel="stylesheet" type="text/css" href="css/edittable.css"  >
    <link rel="stylesheet" type="text/css" href="css/validate.css"  >
    <script type="text/javascript"  src="js/jquery-1.8.0.js"></script>
    <script>
        $(function(){
            $("input[type=text],textarea").focus(function(){
                $(this).addClass("input_focus");
            }).blur(function(){
                $(this).removeClass("input_focus");
            });

            $(".form_btn").hover(function(){
                    $(this).css("color","red").css("background","#6FB2DB");
                },

                function(){
                    $(this).css("color","#295568").css("background","#BAD9E3");
                });
        });
    </script>
</head>

<body>
<div class ="div_title">
    <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>管理员修改</span></div>
</div>
<form action="AdminServlet.do?flag=doUpdateAdmin" method="post"  onsubmit="return check()">
    <table class="edit_table" >
        <tr>
            <td class="td_info">用户账号:</td>
            <td class="td_input_short">
                <input type="hidden" name="id" value="${adminInfo.id}">
                <input type="text" class="txtbox" id="adminName" name="adminName" value="${adminInfo.adminName}">
            </td>
            <td>
                <label class="validate_info" id="adminName_msg">4-15位；只限数字(0-9)和英文(a-z),不区分大小写</label>
            </td>
        </tr>
        <tr>
            <td class="td_info">备注信息:</td>
            <td><textarea rows="4" cols="27" name="note" class="txtarea">${adminInfo.note}</textarea> </td>
            <td><label></label></td>
        </tr>
        <tr>
            <td class="td_info"> </td>
            <td>
                <input class="form_btn" type="submit" value="提交" />
                <a href="AdminServlet.do?flag=getAdminList&pageIndex=${pageIndex}">
                    <input type="button" class="form_btn" onclick="window.history.back()" value="返回">
                </a>
            </td>
            <td>
                <label id="result_msg" class="result_msg"></label>
            </td>
        </tr>
    </table>
</form>
${msg}
</body>
</html>
